<!--
/**************************************************
* @(#)orderinput.jsp
*
* Copyright (c) 2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/02/08, SimonyiPeng
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.*"%>
<%@ include file="../../common.jsp" %>
<%
			response.setHeader("Pragma", "No-cache");
			response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
			response.setDateHeader("Expires", 0);
%>
<html>
<head>
<title>机构信息</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/css.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/string.js"></SCRIPT>

</head>

<%
ArrayList deptList = new ArrayList();
ArrayList addrList = new ArrayList();

//deptList.add("1|一厂");
//deptList.add("2|二厂");

//ArrayList addrlist1 = new ArrayList();
//ArrayList addrlist2 = new ArrayList();
//addrlist1.add("1|天津路|张三|12345678");
//addrlist1.add("2|北京路|李四|87654321");
//addrlist2.add("1|上海路|王五|01010101");
//addrlist2.add("2|重庆路|赵六|10101010");
//addrList.add(addrlist1);
//addrList.add(addrlist2);

ArrayList ary = (ArrayList)session.getAttribute("organdaddr");
deptList = (ArrayList)ary.get(0);
addrList = (ArrayList)ary.get(1);

%>


<script language='javascript'>

	
	
	
	
	var deptlist = new Array();
	var addrlist = new Array();
	var addrlisttemp ;
	//初始化
	<%for(int i=0;i<deptList.size();i++){%>
		deptlist[<%=i%>] = '<%=deptList.get(i)%>';
		<%ArrayList addrListTemp = (ArrayList)addrList.get(i);%>
		addrlisttemp = new Array();
		<%for(int j=0;j<addrListTemp.size();j++){%>
			addrlisttemp[<%=j%>] = '<%=addrListTemp.get(j)%>';			
		<%}%>
		addrlist[<%=i%>] = addrlisttemp;
	<%}%>

	function resetrow(rownum){
		document.getElementById('manufactureid'+rownum).value="";
		document.getElementById('concentricityid'+rownum).value="";
		document.getElementById('manufacturename'+rownum).value="";
		document.getElementById('ordercount'+rownum).value="";
		document.getElementById('deliverdate'+rownum).value="";
		var deliveraddr = document.getElementById('deliveraddr'+rownum);
		document.getElementById('deptid'+rownum).options[0].selected=true;
		j=deliveraddr.length;
		for (i=1;i< j;i++)
		{
			eval("document.all.deliveraddr"+rownum+".options["+(j-i)+"]=null;");
			//the same effect with code in previou line.
			//document.all.deliveraddr1.options[j-i] = null;
		}
		document.getElementById('linkman'+rownum).innerHTML = "<div align='center' class='txt_content'>&nbsp;</div>";
		document.getElementById('linktel'+rownum).innerHTML = "<div align='center' class='txt_content'>&nbsp;</div>";
		//结算方式
		document.getElementById('balancemode'+rownum).style.display='';
		document.getElementById('balancemode'+rownum).options[0].selected=true;
		document.getElementById('balancemode_'+rownum).style.display='none';

	}
	
	function changeDeliverAddrByDept(rownum){
		var deptid=eval('document.all.deptid'+rownum+'.selectedIndex;');
		var deliveraddr = document.getElementById('deliveraddr'+rownum);
		var length=deliveraddr.length;
		for (i=1;i<length;i++)
		{
			eval("document.all.deliveraddr"+rownum+".options["+(length-i)+"]=null;");
			document.getElementById('linkman'+rownum).innerHTML = "<div align='center' class='txt_content'>&nbsp;</div>";
			document.getElementById('linktel'+rownum).innerHTML = "<div align='center' class='txt_content'>&nbsp;</div>";
		}
		//当选择了订货部门
		if(deptid!=0){
			var addrTemp = addrlist[deptid-1];

			for(i=0;i<addrTemp.length;i++){
				var msg = addrTemp[i];
				var sz = StringTokenize(msg,'|',0,null);
				var tempoption=new	Option(sz[1],sz[1]);
				if(sz[2]==null) sz[2]="";
				if(sz[3]==null) sz[3]="";
				eval('document.all.deliveraddr'+rownum+'.options[i+1]=tempoption;');
			}
		}
	}
	
	function changeDeliverAddr(rownum){
		var deptindex = document.getElementById('deptid'+rownum).selectedIndex;
		var addrTemp = addrlist[deptindex-1];
		var msg = addrTemp[document.getElementById('deliveraddr'+rownum).selectedIndex-1];

		var sz = StringTokenize(msg,'|',0,null);
		if(sz[2]==null) sz[2]="";
		if(sz[3]==null) sz[3]="";
		document.getElementById('linkman'+rownum).innerHTML = "<div align='center' class='txt_content'>&nbsp;"+sz[2]+"</div>";
		document.getElementById('linkman_'+rownum).value=sz[2];
		document.getElementById('linktel'+rownum).innerHTML = "<div align='center' class='txt_content'>&nbsp;"+sz[3]+"</div>";
		document.getElementById('linktel_'+rownum).value=sz[3];
	}
	
	function addRow(){
		var currentrownum = parseInt(document.getElementById('currentrownum').value) +1 ;
		if(currentrownum > 10){
			alert('最多只能录入10个产品');
			return false;
		}
		eval('document.all.tr' + currentrownum + '.style.display="";');
		document.getElementById('currentrownum').value=currentrownum;
		//return false to prevent form submitting
		return false;
	}
	
	function delRow(){
		var currentrownum = document.getElementById('currentrownum').value;
		if(currentrownum == 1){
			alert("订单必须有至少一条明细信息");
			return false;
		}
		document.getElementById('currentrownum').value = currentrownum - 1;
		//清理订单明细数据
		resetrow(currentrownum);
		//隐藏订单行
		eval('document.all.tr' + currentrownum + '.style.display="none";');
	}
	
	function undisplayAll(){
		
		document.getElementById('tr2').style.display="none";
		document.getElementById('tr3').style.display="none";
		document.getElementById('tr4').style.display="none";
		document.getElementById('tr5').style.display="none";
		document.getElementById('tr6').style.display="none";
		document.getElementById('tr7').style.display="none";
		document.getElementById('tr8').style.display="none";
		document.getElementById('tr9').style.display="none";
		document.getElementById('tr10').style.display="none";
//		document.getElementById('submitform').style.display='none';
		
		document.all.aaa.style.display='none';
		document.all.bbb.style.display='none';

		return false;
	
	}
	
	
	function submitForm(){
		if(checkNoneableValue()){
			document.form1.action='<%=root%>/A100102.do';
			form1.submit();
		}
	}
	
	function checkNoneableValue(){
		var currentrownum = document.getElementById('currentrownum').value;
		for(i=1;i<=currentrownum;i++){
			var concentricityid = document.getElementById("concentricityid"+i).value;
			var manufacturename = document.getElementById("manufacturename"+i).value;
			var ordercount = document.getElementById("ordercount_"+i).value;
			var deptid = document.getElementById("deptid"+i).value;
			var deliveraddr = document.getElementById("deliveraddr"+i).value;
			
			if(concentricityid == null || concentricityid == "") {
				alert("请确认产品集中编号已经输入");return false();
			}
			if(manufacturename == null || manufacturename == "") {
				alert("请确认产品已经选择");return false();
			}
			if(ordercount == null || ordercount == ""){
				alert("请确认订货数量已经输入");	return false();
			}
			if(deptid == null || deptid == "") {
				alert("请确认订货单位已经选择");return false();
			}
			if(deliveraddr == null || deliveraddr == ""){
				alert("请确认送货地址已经选择");	return false();
			}			
		
		}
		return true;
	}
	
	function inputManufacture(){
		var url = "<%=root%>/jsp/ordersystem/manufactureinsert.jsp";
		var returnv = window.open(url,null," edge: sunken ; center: Yes; help: No; resizable: No; status: No; dialogWidth: 840px ; dialogHeight: 720px ; scroll:yes");
	}
	
	function checkManufacture(rownum){
		var concentricityid = document.getElementById("concentricityid"+rownum).value;
		if(concentricityid == "" || concentricityid == null)
			return false;
		document.all('iframe1').src="<%=root%>/jsp/iframe/checkManufacture.jsp?rownum="+rownum+"&concentricityid="+concentricityid;
		
		return false;
	}
	
	function inputNewManufacture(){
		document.form1.action='/A100103';
		form1.submit();
	}
	
	function selectManufacture(){
		var url="<%=root%>/jsp/ordersystem/ordermanufactureview.jsp";
		var returnv = window.open(url,null," edge: sunken ; center: Yes; help: No; resizable: Yes; status: No; width: 960px ; height: 800px ; scroll:yes");		
	}

	function createOrderCode(){
		alert("检查是否必输项都输入了");
		//document.all('iframe1').src="<%=root%>/jsp/iframe/createorderid.jsp";
		return false;
	}
	
	function jsfschange(rownum){
		var val = document.getElementById('balancemode'+rownum);
		for(var i=0; i<val.options.length; i++) {
			if(val.options[i].selected && val.options[i].value == "3") {
				alert('请手工输入结算方式');
				document.getElementById('balancemode_'+rownum).style.display='';
				document.getElementById('balancemode'+rownum).style.display='none';
			}
		}
	
	}
	
</script>

<body   BGCOLOR=#f2f2f2 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 onLoad='undisplayAll();'>
<p><br></p>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="20"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr height="20">
          <td height="20" width="1" class="mtxt_black">&nbsp;</td>
          <td height="30" width="758" class="mtxt_black">订单录入</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bg_line" height="2"></td>
  </tr>
</table>

<br>


<form name="form1" id="form1" method="post"  style="visibility: visible;">
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
        <td> 
            <table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                <tbody> 
                <tr class="bg_column" height=20> 
                    	<td align=middle colspan="11">订单总体信息</td>
                </tr>
                <tr class="bg_row_odd" height=20> 
                	<td class=top align=middle width='20%' id='aaa'>
                	    <div align="center" class="txt_content">订单编号</div>
                	</td>
                    <td class=top align=middle id='bbb'> 
                        <div align="left" class="txt_content"> 
						<input type='text' id='orderid' name='orderid' size='9' maxlength='9'>
						</div>
                    </td>
                    <td class=top align=middle width='20%'> 
                        <div align="center" class="txt_content">订单种类</div>
                    </td>
                    <td class=top align=middle> 
                        <div align="left" class="txt_content"> 
                        <select name='category'>
                        	<option value='0'>正常采购</option>
                        	<option value='1'>应急采购</option>
                        	<option value='2'>补单</option>
                        </select>
                        </div>
                    </td>
                </tr>
                <tr class="bg_row_odd" height=20> 
                    <td class=top align=middle> 
                        <div align="center" class="txt_content">备注</div>
                    </td>
                    <td class=top align=middle colspan='3'> 
                        <div align="left" class="txt_content"> 
                        <textarea name="notes" width=100%></textarea>
                        </div>
                    </td>
                </tr>
                
                </tbody> 
            </table>
        </td>
    </tr>
</table>

<center>



    <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    	<tr>
    		<td width=60% align=left>
    			<input type="image" src="<%=root%>/images/button/zengjia.gif" width="58" height="24" class="box" onclick="addRow();return false;">
    			<input type="image" src="<%=root%>/images/button/shanchu.gif" width="58" height="24" class="box" onclick="delRow();return false;">
    		</td>
    		<td width=40% align=right>
    			<input type="image" src="<%=root%>/images/button/chaxun.gif" width="58" height="24" class="box" onclick="javascript:selectManufacture();return false;">
    			<!--input type="image" src="<%=root%>/images/button/daoru.gif" width="58" height="24" class="box" onclick="javascript:inputManufacture();return false;"-->
    		</td>
    	<tr>
    </table>

    <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    	<input type='hidden' id='currentrownum' name='currentrownum' value='1'>
        <tr> 
            <td> 
                <table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column" height=20> 
                    	<td align=middle colspan="12">订单产品输入</td>
	                </tr>
	                
	                <tr class="bg_column" height=20> 
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"></div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 集中编码</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 产品名称</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 订货数量</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 送货日期</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 送货时间</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 订货单位</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 送货地址</div>
                        </td>
                        <td class=top align=middle nowrap>  
                            <div align="center" class="txt_content"> 订货联系人</div>
                        </td>
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content"> 订货联系电话</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 配送方式</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 结算方式</div>
                        </td>
                    </tr>


<!--第一行-->
                    <tr id='tr1' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit1' value=''>
					<input type='hidden' name='manufactureunitprice1' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(1);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid1' name='concentricityid1' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid1' name='manufactureid1' size='7' maxlength='11'>
							    <input type='button' value='检查' onclick='checkManufacture(1);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename1' name='manufacturename1' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
	                            <input type="hidden" id='ordercount_1' name='ordercount_1' size="3" maxlength="11">
                            	<input type="text" id='ordercount1' name='ordercount1' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount1.value='';document.all.ordercount_1.value='';"
                            	onblur="javascript:document.all.ordercount_1.value=document.all.ordercount1.value;
                            		document.all.ordercount1.value=document.all.ordercount1.value+document.all.manufactureunit1.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate1' name='deliverdate1' size="8" value=' ' readonly onfocus='setday(this)'>

                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime1' name='delivertime1'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid1' name='deptid1' onChange='changeDeliverAddrByDept(1);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr1' name='deliveraddr1' onChange='changeDeliverAddr(1);'>
                            		<option value=''>请选择..</option>

                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_1' name='linkman_1' value=''>
                        <td class=top align=middle nowrap id='linkman1'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_1' name='linktel_1' value=''>
                        <td class=top align=middle nowrap id='linktel1'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode1' name='delivermode1'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode1' name='balancemode1' onchange="jsfschange(1);">
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_1' name='balancemode_1' size="8" value=' ' style='display:none'>
                            </div>
                        </td>
                    </tr>



<!--第二行-->
                    <tr id='tr2' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit2' value=''>
					<input type='hidden' name='manufactureunitprice2' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(2);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid2' name='concentricityid2' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid2' name='manufactureid2' size='7' maxlength='11'>
							    <input type='button' value='检查' onclick='checkManufacture(2);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename2' name='manufacturename2' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_2' name='ordercount_2' size="3" maxlength="11">
                            	<input type="text" id='ordercount2' name='ordercount2' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount2.value='';document.all.ordercount_2.value='';"
                            	onblur="javascript:document.all.ordercount_2.value=document.all.ordercount2.value;
                            		document.all.ordercount2.value=document.all.ordercount2.value+document.all.manufactureunit2.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate2' name='deliverdate2' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime2' name='delivertime2'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid2' name='deptid2' onChange='changeDeliverAddrByDept(2);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr2' name='deliveraddr2' onChange='changeDeliverAddr(2);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_2' name='linkman_2' value=''>
                        <td class=top align=middle nowrap  id='linkman2'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_2' name='linktel_2' value=''>
                        <td class=top align=middle nowrap id='linktel2'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode2' name='delivermode2'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode2' name='balancemode2'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_2' name='balancemode_2' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

<!--第三行-->
                    <tr id='tr3' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit3' value=''>
					<input type='hidden' name='manufactureunitprice3' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(3);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid3' name='concentricityid3' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid3' name='manufactureid3' size='7' maxlength='11'>
							    <input type='button' value='检查' onclick='checkManufacture(3);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename3' name='manufacturename3' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_3' name='ordercount_3' size="3" maxlength="11">
                            	<input type="text" id='ordercount3' name='ordercount3' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount3.value='';document.all.ordercount_3.value='';"
                            	onblur="javascript:document.all.ordercount_3.value=document.all.ordercount3.value;
                            		document.all.ordercount3.value=document.all.ordercount3.value+document.all.manufactureunit3.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate3' name='deliverdate3' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime3' name='delivertime3'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid3' name='deptid3' onChange='changeDeliverAddrByDept(3);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr3' name='deliveraddr3' onChange='changeDeliverAddr(3);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_3' name='linkman_3' value=''>
                        <td class=top align=middle nowrap  id='linkman3'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_3' name='linktel_3' value=''>
                        <td class=top align=middle nowrap id='linktel3'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode3' name='delivermode3'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode3' name='balancemode3'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_3' name='balancemode_3' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

<!--第四行-->
                    <tr id='tr4' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit4' value=''>
					<input type='hidden' name='manufactureunitprice4' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(4);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid4' name='concentricityid4' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid4' name='manufactureid4' size='7' maxlength='11'>
							    <input type='button' value='检查' onclick='checkManufacture(4);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename4' name='manufacturename4' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_4' name='ordercount_4' size="3" maxlength="11">
                            	<input type="text" id='ordercount4' name='ordercount4' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount4.value='';document.all.ordercount_4.value='';"
                            	onblur="javascript:document.all.ordercount_4.value=document.all.ordercount4.value;
                            		document.all.ordercount4.value=document.all.ordercount4.value+document.all.manufactureunit4.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate4' name='deliverdate4' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime4' name='delivertime4'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid4' name='deptid4' onChange='changeDeliverAddrByDept(4);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr4' name='deliveraddr4' onChange='changeDeliverAddr(4);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_4' name='linkman_4' value=''>
                        <td class=top align=middle nowrap id='linkman4'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_4' name='linktel_4' value=''>
                        <td class=top align=middle nowrap id='linktel4'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode4' name='delivermode4'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode4' name='balancemode4'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_4' name='balancemode_4' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

<!--第五行-->
                    <tr id='tr5' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit5' value=''>
					<input type='hidden' name='manufactureunitprice5' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(5);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid5' name='concentricityid5' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid5' name='manufactureid5' size='7' maxlength='11'>
							    <input type='button' value='检查' onclick='checkManufacture(5);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename5' name='manufacturename5' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_5' name='ordercount_5' size="3" maxlength="11">
                            	<input type="text" id='ordercount5' name='ordercount5' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount5.value='';document.all.ordercount_5.value='';"
                            	onblur="javascript:document.all.ordercount_5.value=document.all.ordercount5.value;
                            		document.all.ordercount5.value=document.all.ordercount5.value+document.all.manufactureunit5.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate5' name='deliverdate5' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime5' name='delivertime5'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid5' name='deptid5' onChange='changeDeliverAddrByDept(5);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr5' name='deliveraddr5' onChange='changeDeliverAddr(5);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_5' name='linkman_5' value=''>
                        <td class=top align=middle nowrap id='linkman5'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_5' name='linktel_5' value=''>
                        <td class=top align=middle nowrap id='linktel5'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode5' name='delivermode5'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode5' name='balancemode5'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_5' name='balancemode_5' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

<!--第六行-->
                    <tr id='tr6' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit6' value=''>
					<input type='hidden' name='manufactureunitprice6' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(6);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid6' name='concentricityid6' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid6' name='manufactureid6' size='7' maxlength='11'>
							    <input type='button' value='检查' onclick='checkManufacture(6);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename6' name='manufacturename6' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_6' name='ordercount_6' size="3" maxlength="11">
                            	<input type="text" id='ordercount6' name='ordercount6' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount6.value='';document.all.ordercount_6.value='';"
                            	onblur="javascript:document.all.ordercount_6.value=document.all.ordercount6.value;
                            		document.all.ordercount6.value=document.all.ordercount6.value+document.all.manufactureunit6.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate6' name='deliverdate6' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime6' name='delivertime6'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid6' name='deptid6' onChange='changeDeliverAddrByDept(6);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr6' name='deliveraddr6' onChange='changeDeliverAddr(6);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_6' name='linkman_6' value=''>
                        <td class=top align=middle nowrap id='linkman6'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_6' name='linktel_6' value=''>
                        <td class=top align=middle nowrap id='linktel6'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode6' name='delivermode6'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode6' name='balancemode6'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_6' name='balancemode_6' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

<!--第七行-->
                    <tr id='tr7' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit7' value=''>
					<input type='hidden' name='manufactureunitprice7' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(7);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid7' name='concentricityid7' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid7' name='manufactureid7' size='7' maxlength='11'>
							    <input type='button' value='检查' onclick='checkManufacture(7);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename7' name='manufacturename7' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_7' name='ordercount_7' size="3" maxlength="11">
                            	<input type="text" id='ordercount7' name='ordercount7' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount7.value='';document.all.ordercount_7.value='';"
                            	onblur="javascript:document.all.ordercount_7.value=document.all.ordercount7.value;
                            		document.all.ordercount7.value=document.all.ordercount7.value+document.all.manufactureunit7.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate7' name='deliverdate7' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime7' name='delivertime7'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid7' name='deptid7' onChange='changeDeliverAddrByDept(7);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr7' name='deliveraddr7' onChange='changeDeliverAddr(7);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_7' name='linkman_7' value=''>
                        <td class=top align=middle nowrap id='linkman7'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_7' name='linktel_7' value=''>
                        <td class=top align=middle nowrap id='linktel7'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode7' name='delivermode7'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode7' name='balancemode7'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_7' name='balancemode_7' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

<!--第八行-->
                    <tr id='tr8' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit8' value=''>
					<input type='hidden' name='manufactureunitprice8' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(8);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid8' name='concentricityid8' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid8' name='manufactureid8' size='7' maxlength='11'>

							    <input type='button' value='检查' onclick='checkManufacture(8);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename8' name='manufacturename8' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_8' name='ordercount_8' size="3" maxlength="11">
                            	<input type="text" id='ordercount8' name='ordercount8' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount8.value='';document.all.ordercount_8.value='';"
                            	onblur="javascript:document.all.ordercount_8.value=document.all.ordercount8.value;
                            		document.all.ordercount8.value=document.all.ordercount8.value+document.all.manufactureunit8.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate8' name='deliverdate8' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime8' name='delivertime8'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid8' name='deptid8' onChange='changeDeliverAddrByDept(8);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr8' name='deliveraddr8' onChange='changeDeliverAddr(8);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_8' name='linkman_8' value=''>
                        <td class=top align=middle nowrap id='linkman8'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_8' name='linktel_8' value=''>
                        <td class=top align=middle nowrap id='linktel8'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode8' name='delivermode8'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode8' name='balancemode8'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_8' name='balancemode_8' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

<!--第九行-->
                    <tr id='tr9' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit9' value=''>
					<input type='hidden' name='manufactureunitprice9' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(9);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid9' name='concentricityid9' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid9' name='manufactureid9' size='7' maxlength='11'>

							    <input type='button' value='检查' onclick='checkManufacture(9);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename9' name='manufacturename9' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_9' name='ordercount_9' size="3" maxlength="11">
                            	<input type="text" id='ordercount9' name='ordercount9' size="3" maxlength="11"
                            	onfocus="javascript:document.all.ordercount9.value='';document.all.ordercount_9.value='';"
                            	onblur="javascript:document.all.ordercount_9.value=document.all.ordercount9.value;
                            		document.all.ordercount9.value=document.all.ordercount9.value+document.all.manufactureunit9.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate9' name='deliverdate9' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime9' name='delivertime9'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid9' name='deptid9' onChange='changeDeliverAddrByDept(9);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr9' name='deliveraddr9' onChange='changeDeliverAddr(9);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_9' name='linkman_9' value=''>
                        <td class=top align=middle nowrap id='linkman9'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_9' name='linktel_9' value=''>
                        <td class=top align=middle nowrap id='linktel9'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode9' name='delivermode9'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode9' name='balancemode9'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_9' name='balancemode_9' size="8" value=' ' style='display:none'>
                            </div>
                        </td>
                    </tr>

<!--第十行-->
                    <tr id='tr10' class="bg_column" height=20 > 
					<input type='hidden' name='manufactureunit10' value=''>
					<input type='hidden' name='manufactureunitprice10' value=''>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content">
	                            <input type='button' value='重置' onclick='resetrow(10);'>
                            </div>
                        </td>
                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='concentricityid10' name='concentricityid10' size='7' maxlength='11'>
								<input type='hidden' id='manufactureid10' name='manufactureid10' size='7' maxlength='11'>

							    <input type='button' value='检查' onclick='checkManufacture(10);'>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
								<input type='text' id='manufacturename10' name='manufacturename10' size='7' maxlength='11' readonly>
							</div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            	<input type="hidden" id='ordercount_10' name='ordercount_10' size="3" maxlength="11">
                            	<input type="text" id='ordercount10' name='ordercount10' size="3" maxlength="11" 
                            	onfocus="javascript:document.all.ordercount10.value='';document.all.ordercount_10.value='';"
                            	onblur="javascript:document.all.ordercount_10.value=document.all.ordercount10.value;
                            		document.all.ordercount10.value=document.all.ordercount10.value+document.all.manufactureunit10.value;"
                            	>
							</div>
                        </td>
                        <!--送货日期-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            	<input type="text" id='deliverdate10' name='deliverdate10' size="8" value=' ' readonly onfocus='setday(this)'>
                            </div>
                        </td>
                        <!--送货时间-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivertime10' name='delivertime10'>
                            		<option value='1'>8:00-12:00</option>
                            		<option value='2'>13:00-18:00</option>
                            		<option value='3'>全天</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deptid10' name='deptid10' onChange='changeDeliverAddrByDept(10);'>
                            		<option value='' selected>请选择..</option>
                        		<%
                        		for(int i=0;i<deptList.size();i++){
                        			String dept = (String)deptList.get(i);
							        StringTokenizer st = new StringTokenizer(dept,"|");
							        String[] tmp = new String[2] ;
							        int index =0;
							        while(st.hasMoreElements()){
							            tmp[index++] = (String)st.nextElement();
							        }
                        		%>
                            		<option value='<%=tmp[0]%>'><%=tmp[1]%></option>
                        		<%
                        		}
                        		%>
                            	</select>
                            </div>
                        </td>
                        <!--送货地址-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='deliveraddr10' name='deliveraddr10' onChange='changeDeliverAddr(10);'>
                            		<option value=''>请选择..</option>
                            	</select>
                            </div>
                        </td>
                        <!--订货联系人-->
                        <input type='hidden' id='linkman_10' name='linkman_10' value=''>
                        <td class=top align=middle nowrap id='linkman10'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--订货联系电话-->
                        <input type='hidden' id='linktel_10' name='linktel_10' value=''>
                        <td class=top align=middle nowrap id='linktel10'> 
                            <div align='center' class='txt_content'> 
                            	&nbsp;
                            </div>
                        </td>
                        <!--配送方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='delivermode10' name='delivermode10'>
                            		<option value='1'>特快专递</option>
                            		<option value='2'>普通邮寄</option>
                            		<option value='3'>送货上门</option>
                            	</select>
                            </div>
                        </td>
                        <!--结算方式-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            	<select id='balancemode10' name='balancemode10'>
                            		<option value='1'>货到付款</option>
                            		<option value='2'>款到发货</option>
                            		<option value='3'>其他</option>
                            	</select>
                            </div>
                            <div align='center' class='txt_content' > 
	                            <input type="text" id='balancemode_10' name='balancemode_10' size="8" value=' ' style='display:none'>
                            </div>                            
                        </td>
                    </tr>

					
                    </tbody> 
                </table>
            </td>
        </tr>
    </table>
    <p align="center">  
    </p>
</form>

<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
<!--
		<td width=100% align=middle id="createorderid">
			<input type="image" src="<%=root%>/images/button/shengcheng.gif" width="58" height="24" class="box" onclick="createOrderCode();return false;">
		</td>
-->

		<td width=100% align=middle id="submitform">
			<input type="image" src="<%=root%>/images/button/queding.gif" width="58" height="24" class="box" onclick="submitForm();return false;">
		</td>

	<tr>
</table>

<div style="text-align:center;visibility:hidden" id="queding" name="queding">
	   <input type="image" src="images/cx.jpg" width="58" height="24" class="box" onclick="form1.submit()">
</div>
</center>

<iframe id='iframe1' name="iframe1" src="<%=root%>/template.jsp" width="800" height="200" frameborder = "0"></iframe>


</body>
</html>